package com.edee.bigday.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edee.bigday.commodity.entity.CategoryEntity;
import com.edee.bigday.commodity.vo.Catalog2Vo;
import com.edee.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author edee
 * @email 421763094@qq.com
 * @date 2020-12-09 23:08:51
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     * 找到catalogId的完整路径：[父/子/孙]
     * @param catalogId
     * @return
     */
    Long[] findCatalogPath(Long catalogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categories();

    Map<String, List<Catalog2Vo>> getCatalogJson();
}

